package com.apphome.rbac.domain;

import java.math.BigInteger;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.apphome.dal.AbstractEntity;



/**
 * The persistent class for the t_authorities_resources database table.
 * 
 */
@Entity
@Table(name="t_authorities_resources")
public class AuthorityResource extends AbstractEntity {
	
	private static final long serialVersionUID = 1L;

	@Column(name="AUTHORITY_ID")
	private Long id;

	@Column(name="AUTHORITY_DESC")
	private String authorityDesc;

	@Column(name="AUTHORITY_NAME")
	private String authorityName;

	@Column(name="CREATE_TIME")
	private Timestamp createTime;

	private Object enabled;

	@Column(name="LASTUPDATE_TIME")
	private Timestamp lastupdateTime;

	@Column(name="PARENT_ID")
	private BigInteger parentId;

	@Column(name="RESOURCE_PATH")
	private String resourcePath;

	@Column(name="RESOURCE_TYPE")
	private String resourceType;

	//bi-directional many-to-one association to TRolesAuthority
	@ManyToOne
	@JoinColumn(name="AUTHORITY_ID", referencedColumnName="AUTHORITY_ID")
	private RoleAuthority rolesAuthority;

	public AuthorityResource() {
	}


	public String getAuthorityDesc() {
		return this.authorityDesc;
	}

	public void setAuthorityDesc(String authorityDesc) {
		this.authorityDesc = authorityDesc;
	}

	public String getAuthorityName() {
		return this.authorityName;
	}

	public void setAuthorityName(String authorityName) {
		this.authorityName = authorityName;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public Object getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Object enabled) {
		this.enabled = enabled;
	}

	public Timestamp getLastupdateTime() {
		return this.lastupdateTime;
	}

	public void setLastupdateTime(Timestamp lastupdateTime) {
		this.lastupdateTime = lastupdateTime;
	}

	public BigInteger getParentId() {
		return this.parentId;
	}

	public void setParentId(BigInteger parentId) {
		this.parentId = parentId;
	}

	public String getResourcePath() {
		return this.resourcePath;
	}

	public void setResourcePath(String resourcePath) {
		this.resourcePath = resourcePath;
	}

	public String getResourceType() {
		return this.resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public RoleAuthority getRolesAuthority() {
		return this.rolesAuthority;
	}

	public void setRolesAuthority(RoleAuthority rolesAuthority) {
		this.rolesAuthority = rolesAuthority;
	}

}